package com.fsnbigdata.util;

/**
 * Created by zhongcheng on 13/10/2017.
 */
public class Naming{

    public Naming(String name, String latin) {
        this.name = name;
        this.latin = latin;
    }

    private String name;

    private String latin;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLatin() {
        return latin;
    }

    public void setLatin(String latin) {
        this.latin = latin;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Naming naming = (Naming) o;

        if (name != null ? !name.equals(naming.name) : naming.name != null) return false;
        return latin != null ? latin.equals(naming.latin) : naming.latin == null;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (latin != null ? latin.hashCode() : 0);
        return result;
    }
}
